package com.wms.mapper;

import com.wms.pojo.User;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Description:
 * @Project:
 * @CreateDate: Created in 2020/3/17 19:59
 * @Author: YXH
 */
@Repository
public interface UserMapper {

    /**
     * 根据name查询用户
     * @param name
     * @return User
     */
    public User queryUserByName(String name);

    public List<User> allAdmin();

    public User queryById(int id);

    public void setStatus(int id,int status);

    public void addAdmin(User user);

    public void updateAdmin(User user);

    public void delAdmin(int id);
}
